<?php
include_once("../include/init.php");
	//判断用户是否登录
	if(!isset($_SESSION['user'])){
		msg("请先登录","login.php");
		exit;
	}
	$uid = $_SESSION['uid'];
$sql = "SELECT * from tk_user where uid =$uid";
 $res = mysql_query($sql);
$info = mysql_fetch_assoc($res);


?>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
	<link rel="stylesheet" href="../public/css/index.css">
	<link rel="stylesheet" href="../public/css/order.css">
	</head>
	<body>
			<!-- 头部-->
<?php
include_once("header.php");
?>
		<!-- 主体-->
		<div class="main">
			<form action="do_user.php "method="post" >
			<div class="addr">
				<div class="goods"><h4>个人信息</h4></div>				
				<table  cellpadding="0px" cellspacing="0px">
					<tr>
						<td><span>*</span>用户名：</td>
						<td><input type="text" name="user" value="<?= $info['user']?>"/></td>
					</tr>
					<tr>
						<td><span>*</span>邮箱：</td>
						<td><input type="text" name="email" value="<?= $info['email']?>"/></td>
					</tr>
					<tr>
						<td><span>*</span>手&nbsp;机&nbsp;号&nbsp;：</td>
						<td><input type="text" name="tel" value="<?=$info['phone']?>"/></td>
					</tr>
				</table>
				<input type="submit" name ="sub" value="修改个人信息"  class="input">
			 </div>	

			</form>
		</div>
				
			<hr>
		<div class="clearfix"></div>
			<!-- 页脚-->
			<?php
             include_once("footer.php");
             ?>
		
	</body>
</html>
